/* 赛博科技风格主题 */
.cyber-task-detail {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ffff;
    font-family: 'Courier New', 'SF Mono', Monaco, monospace;
    position: relative;
    overflow-x: hidden;
}

/* 科技感头部 */
.cyber-header {
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.hologram-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, #ff00ff, transparent);
    margin: 1rem 0;
    position: relative;
    animation: scan 3s linear infinite;
}

.neon-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

/* 主要内容区域 */
.cyber-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1800px;
    margin: 0 auto;
}

/* 科技感区域样式 */
.cyber-section {
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #ff00ff;
    border-radius: 50%;
    margin-right: 1rem;
    animation: dot-pulse 2s infinite;
    box-shadow: 0 0 10px #ff00ff;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00ffff;
    margin: 0;
}

.tech-border {
    flex: 1;
    height: 2px;
    margin-left: 1rem;
    background: linear-gradient(90deg, #00ffff, transparent);
}

/* 横向柱状图容器 */
.horizontal-bars-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
}

.horizontal-bars-container::-webkit-scrollbar {
    width: 8px;
}

.horizontal-bars-container::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
}

.horizontal-bars-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 4px;
}

/* 横向柱状图行 */
.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.bar-row:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
}

.bar-row.active {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.bar-label {
    width: 120px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 40px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.cyber-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #0080ff);
    border-radius: 4px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 40px;
}

.cyber-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
    animation: bar-glow 2s infinite;
}

.bar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3));
    border-radius: 4px;
}

.bar-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
    opacity: 0;
    animation: bar-pulse 3s infinite;
}

.bar-value {
    color: #000;
    font-weight: bold;
    padding: 0 10px;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 词云全息投影区域 */
.wordcloud-hologram {
    position: relative;
    height: 500px;
    background: rgba(0, 10, 20, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.hologram-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
            linear-gradient(180deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.hologram-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 10px #00ffff;
    animation: scan 4s linear infinite;
}

.cyber-wordcloud {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 全息投影激活动画 */
.hologram-activate {
    animation: hologram-activate 0.8s ease-out;
}

/* 问题模态框全息投影 */
.hologram-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.hologram-content {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(10, 0, 30, 0.95));
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
    animation: hologram-appear 0.5s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    position: relative;
}

.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff00ff, #00ffff, transparent);
    animation: data-stream 3s linear infinite;
}

.neon-text {
    margin: 0;
    color: #00ffff;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px #00ffff;
}

.cyber-close {
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid #ff00ff;
    border-radius: 4px;
    color: #ff00ff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cyber-close:hover {
    background: rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 15px #ff00ff;
}

.close-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.question-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.cyber-question {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 6px;
    opacity: 0;
    animation: question-fade-in 0.5s ease-out forwards;
    animation-delay: var(0.5s);
    transition: all 0.3s ease;
}

.cyber-question:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: translateX(5px);
}

.question-index {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.question-text {
    color: #e0e0e0;
    line-height: 1.4;
    flex: 1;
}

/* 背景科技元素 */
.cyber-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(180deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.floating-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: #00ffff;
    top: 10%;
    left: 10%;
    animation: float 20s infinite linear;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: #ff00ff;
    top: 60%;
    right: 15%;
    animation: float 15s infinite linear reverse;
}

.orb-3 {
    width: 180px;
    height: 180px;
    background: #ffff00;
    bottom: 20%;
    left: 20%;
    animation: float 25s infinite linear;
}

/* 动画定义 */
@keyframes neon-pulse {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6);
    }
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px #ff00ff;
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    }
}

@keyframes bar-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bar-pulse {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes hologram-activate {
    0% {
        box-shadow: 0 0 0 rgba(0, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 255, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
}

@keyframes hologram-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes data-stream {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes question-fade-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cyber-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .horizontal-bars-container {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .cyber-content {
        padding: 0 1rem;
    }

    .neon-title {
        font-size: 1.8rem;
    }

    .horizontal-bars-container {
        max-height: 300px;
    }

    .bar-label {
        width: 80px;
        font-size: 0.8rem;
    }

    .bar-track {
        height: 30px;
    }

    .wordcloud-hologram {
        height: 400px;
    }
}